package com.mop.sg2.msg.test;

import com.mop.sg2.msg.MsgType;
import com.mop.sg2.msg.base.BaseMsg;

public class LoginMsg extends BaseMsg {

	String name = null;

	String password = null;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public void readImpl() {
	}

	@Override
	public void writeImpl() {
		this.writeString(name);
		this.writeString(password);
	}

	@Override
	public short getMsgType() {
		return MsgType.LOGIN;
	}

	@Override
	public String getMsgName() {
		return "LOGIN";
	}

}
